FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.7.16  |  FHIR Version n/a  User: [n/a]

Resource PlanDefinition/FHIR Server from package smart.who.int.anc#current (187 ms)

Package smart.who.int.anc
Type PlanDefinition
Id Id
FHIR Version R4
Source http://smart.who.int/anc/https://build.fhir.org/ig/WorldHealthOrganization/smart-anc/PlanDefinition-ANCDT06.html
Url http://smart.who.int/anc/PlanDefinition/ANCDT06
Version 0.3.0
Status active
Date 2025-06-24T13:58:48-06:00
Name ANCDT06
Title ANC.DT.06 Physical symptoms and exam results requiring referral
Experimental False
Realm uv
Authority who
Description If the woman has any of the following physical exam results, refer to the hospital

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

Id: ANCDT06
Url: ANC.DT.06 Physical symptoms and exam results requiring referral
Version: 0.3.0
Official

ANC.DT.06

Title: ANC.DT.06 Physical symptoms and exam results requiring referral
Type:

system: http://terminology.hl7.org/CodeSystem/plan-definition-type

code: eca-rule

Date: 2025-06-24 13:58:48-0600
Publisher: World Health Organization (WHO)
Description:

If the woman has any of the following physical exam results, refer to the hospital

Use Context:
code value
task
Jurisdiction: 001
Libraries:
ANC.DT.06 Physical symptoms and exam results requiring referral
Actions:
ANC.DT.06 Physical symptoms and exam results requiring referral:
When: Named Event: ANC.B8. Conduct physical exam
Then:
Woman has a fever – provide treatment and refer urgently to hospital! Procedure: – Insert an IV line – Give fluids slowly
If: Applicability: ("Body temperature" ≥ 38°C) AND ("Second body temperature" ≥ 38°C) (Should Conduct further investigation and, if necessary, refer urgently if treatment not available at your facility )
Abnormal pulse rate – refer for further investigation Procedure: – Check for fever, infection, respiratory distress, arrhythmia – Refer for further investigation
If: Applicability: 60 bpm > "Second pulse rate" > 100 bpm (Should Refer to a hospital)
Woman has respiratory distress – refer urgently to the hospital!
If: Applicability: (((((("Respiratory exam result" = "Dyspnoea") OR ("Respiratory exam result" = "Cough")) OR ("Respiratory exam result" = "Rapid breathing")) OR ("Respiratory exam result" = "Slow breathing")) OR ("Respiratory exam result" = "Wheezing")) OR ("Respiratory exam result" = "Rales")) OR ("Respiratory exam result" = "Other abnormal respiratory exam result (specify)") (Should Refer urgently to a hospital)
Woman has low oximetry (<92%) – she should be referred urgently to the hospital
If: Applicability: "Oximetry" < 92% (Should Refer urgently to a hospital 2)
Woman's cardiac condition is abnormal and she should be referred urgently to the hospital
If: Applicability: ((((((("Cardiac exam result" = "Heart murmur") OR ("Cardiac exam result" = "Weak pulse")) OR ("Cardiac exam result" = "Tachycardia")) OR ("Cardiac exam result" = "Bradycardia")) OR ("Cardiac exam result" = "Arrhythmia")) OR ("Cardiac exam result" = "Cyanosis")) OR ("Cardiac exam result" = "Cold sweats")) OR ("Cardiac exam result" = "Other abnormal cardiac exam result (specify)") (Should Refer urgently to a hospital 3)
Woman's breast exam was abnormal and she should be referred to hospital for further investigation
If: Applicability: (((((("Breast exam result" = "Nodule") OR ("Breast exam result" = "Discharge")) OR ("Breast exam result" = "Flushing")) OR ("Breast exam result" = "Local pain")) OR ("Breast exam result" = "Bleeding")) OR ("Breast exam result" = "Increased temperature")) OR ("Breast exam result" = "Other breast exam result (specify)") (Should Conduct further investigation and, if necessary, refer urgently to a hospital)
Woman's abdominal exam was abnormal and she should be referred or further evaluated
If: Applicability: ((((((((((((((((("Abdominal exam result" = "Mass/tumour") OR ("Abdominal exam result" = "Pain on superficial palpation")) OR ("Abdominal exam result" = "Pain on deep palpation")) OR ("Abdominal exam result" = "Painful decompression")) OR ("Abdominal exam result" = "Other abnormal abdominal exam result (specify)")) OR ("Pelvic exam result (visual)" = "Abnormal vaginal discharge")) OR ("Pelvic exam result (visual)" = "Evidence of amniotic fluid")) OR ("Pelvic exam result (visual)" = "Foul-smelling vaginal discharge")) OR ("Pelvic exam result (visual)" = "Clusters of erythematous papules")) OR ("Pelvic exam result (visual)" = "Vesicles")) OR ("Pelvic exam result (visual)" = "Genital ulcer")) OR ("Pelvic exam result (visual)" = "Genital pain")) OR ("Pelvic exam result (visual)" = "Tender bilateral inguinal and femoral lymphadenopathy")) OR ("Pelvic exam result (visual)" = "Cervical friability")) OR ("Pelvic exam result (visual)" = "Mucopurulent cervicitis")) OR ("Pelvic exam result (visual)" = "Tender unilateral lymphadenopathy")) OR ("Pelvic exam result (visual)" = "Curd-like vaginal discharge")) OR ("Pelvic exam result (visual)" = "Other abnormal pelvic exam (visual) result (specify)") (Should Refer to a hospital 2)
Woman should be referred urgently if there is evidence of amniotic fluid, which could indicate the start of labour
If: Applicability: ("Pelvic exam result (visual)" = "Evidence of amniotic fluid") AND ("Gestational age" < 37 weeks) (Should Refer urgently to a hospital 4)
If no fetal heartbeat is observed, inform the woman that there might be a problem and that she needs to be referred to the hospital for further examination and next steps. Procedure: – Inform the woman that you cannot find the heartbeat and need to refer her to check if there's a problem – Refer to hospital
If: Applicability: ("Fetal heartbeat present" = FALSE) AND ("Gestational age" ≥ 20 weeks) (Should Refer to a hospital 3)
Fetal heart rate is abnormal after two readings: the woman should be referred to hospital
If: Applicability: (100 bpm > "Second fetal heart rate" > 180 bpm) AND ("Gestational age" ≥ 20 weeks) (Should Refer to a hospital 4)

Source

{
  "resourceType" : "PlanDefinition",
  "id" : "ANCDT06",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n <table class=\"grid dict\">\n \n <tr>\n <th scope=\"row\"><b>Id: </b></th>\n <td style=\"padding-left: 4px;\">ANCDT06</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Url: </b></th>\n <td style=\"padding-left: 4px;\"><a href=\"PlanDefinition-ANCDT06.html\">ANC.DT.06 Physical symptoms and exam results requiring referral</a></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Version: </b></th>\n <td style=\"padding-left: 4px;\">0.3.0</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\">\n <b>\n \n Official\n \n </b>\n </th>\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>ANC.DT.06</span>\n </p>\n \n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Title: </b></th>\n <td style=\"padding-left: 4px;\">ANC.DT.06 Physical symptoms and exam results requiring referral</td>\n </tr>\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Type: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"http://terminology.hl7.org/6.4.0/CodeSystem-plan-definition-type.html\">http://terminology.hl7.org/CodeSystem/plan-definition-type</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>eca-rule</span>\n </p>\n \n \n \n \n \n </td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Date: </b></th>\n <td style=\"padding-left: 4px;\">2025-06-24 13:58:48-0600</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Publisher: </b></th>\n <td style=\"padding-left: 4px;\">World Health Organization (WHO)</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Description: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>If the woman has any of the following physical exam results, refer to the hospital</p>\n</div></td>\n </tr>\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Use Context: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr>\n <th><b>code</b></th>\n <th><b>value</b></th>\n </tr>\n \n <tr>\n <td>task</td>\n <td/>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Jurisdiction: </b></th>\n <td style=\"padding-left: 4px;\">001</td>\n </tr>\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Libraries: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td><a href=\"Library-ANCDT06.html\">ANC.DT.06 Physical symptoms and exam results requiring referral</a></td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Actions: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td>\n \n <b> ANC.DT.06 Physical symptoms and exam results requiring referral:</b> \n \n <br/>\n \n <b>When:</b>\n \n <i>Named Event:</i> ANC.B8. Conduct physical exam\n <br/>\n \n \n \n \n <b>Then:</b>\n <table class=\"grid-dict\">\n \n <tr>\n <td>\n \n Woman has a fever – provide treatment and refer urgently to hospital!\nProcedure:\n– Insert an IV line\n– Give fluids slowly\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n (&quot;Body temperature&quot; ≥ 38°C)\n AND (&quot;Second body temperature&quot; ≥ 38°C)\n \n <i>(Should Conduct further investigation and, if necessary, refer urgently if treatment not available at your facility )</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Abnormal pulse rate – refer for further investigation\nProcedure:\n– Check for fever, infection, respiratory distress, arrhythmia\n– Refer for further investigation\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n 60 bpm &gt; &quot;Second pulse rate&quot; &gt; 100 bpm\n \n <i>(Should Refer to a hospital)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Woman has respiratory distress – refer urgently to the hospital!\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n ((((((&quot;Respiratory exam result&quot; = &quot;Dyspnoea&quot;)\n OR (&quot;Respiratory exam result&quot; = &quot;Cough&quot;))\n OR (&quot;Respiratory exam result&quot; = &quot;Rapid breathing&quot;))\n OR (&quot;Respiratory exam result&quot; = &quot;Slow breathing&quot;))\n OR (&quot;Respiratory exam result&quot; = &quot;Wheezing&quot;))\n OR (&quot;Respiratory exam result&quot; = &quot;Rales&quot;))\n OR (&quot;Respiratory exam result&quot; = &quot;Other abnormal respiratory exam result (specify)&quot;)\n \n <i>(Should Refer urgently to a hospital)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Woman has low oximetry (&lt;92%) – she should be referred urgently to the hospital\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n &quot;Oximetry&quot; &lt; 92%\n \n <i>(Should Refer urgently to a hospital 2)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Woman's cardiac condition is abnormal and she should be referred urgently to the hospital\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n (((((((&quot;Cardiac exam result&quot; = &quot;Heart murmur&quot;)\n OR (&quot;Cardiac exam result&quot; = &quot;Weak pulse&quot;))\n OR (&quot;Cardiac exam result&quot; = &quot;Tachycardia&quot;))\n OR (&quot;Cardiac exam result&quot; = &quot;Bradycardia&quot;))\n OR (&quot;Cardiac exam result&quot; = &quot;Arrhythmia&quot;))\n OR (&quot;Cardiac exam result&quot; = &quot;Cyanosis&quot;))\n OR (&quot;Cardiac exam result&quot; = &quot;Cold sweats&quot;))\n OR (&quot;Cardiac exam result&quot; = &quot;Other abnormal cardiac exam result (specify)&quot;)\n \n <i>(Should Refer urgently to a hospital 3)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Woman's breast exam was abnormal and she should be referred to hospital for further investigation\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n ((((((&quot;Breast exam result&quot; = &quot;Nodule&quot;)\n OR (&quot;Breast exam result&quot; = &quot;Discharge&quot;))\n OR (&quot;Breast exam result&quot; = &quot;Flushing&quot;))\n OR (&quot;Breast exam result&quot; = &quot;Local pain&quot;))\n OR (&quot;Breast exam result&quot; = &quot;Bleeding&quot;))\n OR (&quot;Breast exam result&quot; = &quot;Increased temperature&quot;))\n OR (&quot;Breast exam result&quot; = &quot;Other breast exam result (specify)&quot;)\n \n <i>(Should Conduct further investigation and, if necessary, refer urgently to a hospital)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Woman's abdominal exam was abnormal and she should be referred or further evaluated\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n (((((((((((((((((&quot;Abdominal exam result&quot; = &quot;Mass/tumour&quot;)\n OR (&quot;Abdominal exam result&quot; = &quot;Pain on superficial palpation&quot;))\n OR (&quot;Abdominal exam result&quot; = &quot;Pain on deep palpation&quot;))\n OR (&quot;Abdominal exam result&quot; = &quot;Painful decompression&quot;))\n OR (&quot;Abdominal exam result&quot; = &quot;Other abnormal abdominal exam result (specify)&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Abnormal vaginal discharge&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Evidence of amniotic fluid&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Foul-smelling vaginal discharge&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Clusters of erythematous papules&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Vesicles&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Genital ulcer&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Genital pain&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Tender bilateral inguinal and femoral lymphadenopathy&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Cervical friability&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Mucopurulent cervicitis&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Tender unilateral lymphadenopathy&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Curd-like vaginal discharge&quot;))\n OR (&quot;Pelvic exam result (visual)&quot; = &quot;Other abnormal pelvic exam (visual) result (specify)&quot;)\n \n <i>(Should Refer to a hospital 2)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Woman should be referred urgently if there is evidence of amniotic fluid, which could indicate the start of labour\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n (&quot;Pelvic exam result (visual)&quot; = &quot;Evidence of amniotic fluid&quot;)\n AND (&quot;Gestational age&quot; &lt; 37 weeks)\n \n <i>(Should Refer urgently to a hospital 4)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n If no fetal heartbeat is observed, inform the woman that there might be a problem and that she needs to be referred to the hospital for further examination and next steps.\n\nProcedure:\n– Inform the woman that you cannot find the heartbeat and need to refer her to check if there's a problem\n– Refer to hospital\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n (&quot;Fetal heartbeat present&quot; = FALSE)\n AND (&quot;Gestational age&quot; ≥ 20 weeks)\n \n <i>(Should Refer to a hospital 3)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Fetal heart rate is abnormal after two readings: the woman should be referred to hospital\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n (100 bpm &gt; &quot;Second fetal heart rate&quot; &gt; 180 bpm)\n AND (&quot;Gestational age&quot; ≥ 20 weeks)\n \n <i>(Should Refer to a hospital 4)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n </table>\n \n </td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n </table>\n</div>\n</div>"
  },
  "contained" : [
    {
      "resourceType" : "Library",
      "id" : "effective-data-requirements",
      "name" : "EffectiveDataRequirements",
      "status" : "active",
      "type" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/library-type",
            "code" : "module-definition"
          }
        ]
      },
      "relatedArtifact" : [
        {
          "type" : "depends-on",
          "display" : "Library FHIRHelpers",
          "resource" : "http://smart.who.int/anc/Library/FHIRHelpers|4.0.1"
        },
        {
          "type" : "depends-on",
          "display" : "Library ContactData",
          "resource" : "http://smart.who.int/anc/Library/ANCContactDataElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library WC",
          "resource" : "http://smart.who.int/anc/Library/WHOCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Library Cx",
          "resource" : "http://smart.who.int/anc/Library/ANCConcepts"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Respiratory exam result",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de39"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Respiratory exam result - Dyspnoea Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de42"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Respiratory exam result - Cough Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de43"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Respiratory exam result - Rapid breathing Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de44"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Respiratory exam result - Slow breathing Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de45"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Respiratory exam result - Wheezing Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de46"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Respiratory exam result - Rales Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de47"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Respiratory exam result - Other abnormal result (specify) Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de48"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Second pulse rate",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de37"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Body temperature",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de34"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Second body temperature",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de35"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Abdominal exam result",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de71"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Abdominal exam result - Mass/tumour Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de74"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Abdominal exam result - Pain on superficial palpation Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de75"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Abdominal exam result - Pain on deep palpation Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de76"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Abdominal exam result - Painful decompression Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de77"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Abdominal exam result - Other abnormal abdominal exam result (specify) Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de78"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Pelvic exam result (visual)",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de79"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Pelvic exam result (visual) - Abnormal vaginal discharge Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de82"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Pelvic exam result (visual) - Evidence of amniotic fluid Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de83"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Pelvic exam result (visual) - Clusters of erythematous papules Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de84"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Pelvic exam result (visual) - Vesicles Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de85"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Pelvic exam result (visual) - Genital ulcer Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de86"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Pelvic exam result (visual) - Genital pain Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de87"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Pelvic exam result (visual) - Lymphadenopathy (pelvic - unilateral or bilateral) Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de88"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Pelvic exam result (visual) - Cervical friability Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de89"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Pelvic exam result (visual) - Mucopurulent cervicitis Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de90"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Pelvic exam result (visual) - Other abnormal pelvic exam (visual) result (specify) Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de91"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Gestational age",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de17"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Cardiac exam result",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de50"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Cardiac exam result - Heart murmur Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de53"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Cardiac exam result - Weak pulse Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de54"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Cardiac exam result - Tachycardia Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de55"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Cardiac exam result - Bradycardia Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de56"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Cardiac exam result - Arrhythmia Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de57"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Cardiac exam result - Peripheral cyanosis Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de58"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Cardiac exam result - Cold sweats Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de59"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Cardiac exam result - Other abnormal cardiac exam result (specify) Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de60"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Respiratory exam result - Oximetry",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de49"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Breast exam result",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de61"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Breast exam result - Nodule Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de64"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Breast exam result - Discharge Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de65"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Breast exam result - Flushing Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de66"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Breast exam result - Local pain Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de67"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Breast exam result - Bleeding Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de68"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Breast exam result - Increased temperature Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de69"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Breast exam result - Other breast exam result (specify) Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de70"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Second fetal heart rate",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de108"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Fetal heartbeat present",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de106"
        }
      ],
      "parameter" : [
        {
          "name" : "encounter",
          "use" : "in",
          "min" : 0,
          "max" : "1",
          "type" : "string"
        },
        {
          "name" : "Should Refer urgently to a hospital",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Refer to a hospital",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Conduct further investigation and, if necessary, refer urgently if treatment not available at your facility ",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Refer to a hospital 2",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Refer urgently to a hospital 4",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Refer urgently to a hospital 3",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Refer urgently to a hospital 2",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Conduct further investigation and, if necessary, refer urgently to a hospital",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Refer to a hospital 4",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Refer to a hospital 3",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        }
      ],
      "dataRequirement" : [
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de39"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de37"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de34"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de35"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de71"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de79"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de17"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de50"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de49"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de61"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de108"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de106"
            }
          ]
        }
      ]
    }
  ],
  "extension" : [
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Respiratory exam result"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B8.DE39 Respiratory exam result\n @activity: ANC.B8 Physical exam\n @description: The woman's respiratory condition based on respiratory exam\n*/\ndefine \"Respiratory exam result\":\n WC.Only(\n [Observation: Cx.\"Respiratory exam result\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 0
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT06"
        },
        {
          "url" : "name",
          "valueString" : "Should Refer urgently to a hospital"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n((((((\"Respiratory exam result\" = \"Dyspnoea\")\n OR (\"Respiratory exam result\" = \"Cough\"))\n OR (\"Respiratory exam result\" = \"Rapid breathing\"))\n OR (\"Respiratory exam result\" = \"Slow breathing\"))\n OR (\"Respiratory exam result\" = \"Wheezing\"))\n OR (\"Respiratory exam result\" = \"Rales\"))\n OR (\"Respiratory exam result\" = \"Other abnormal respiratory exam result (specify)\")\n*/\ndefine \"Should Refer urgently to a hospital\":\n ContactData.\"Respiratory exam result\" in Cx.\"Respiratory exam result - Dyspnoea Choices\"\n or ContactData.\"Respiratory exam result\" in Cx.\"Respiratory exam result - Cough Choices\"\n or ContactData.\"Respiratory exam result\" in Cx.\"Respiratory exam result - Rapid breathing Choices\"\n or ContactData.\"Respiratory exam result\" in Cx.\"Respiratory exam result - Slow breathing Choices\"\n or ContactData.\"Respiratory exam result\" in Cx.\"Respiratory exam result - Wheezing Choices\"\n or ContactData.\"Respiratory exam result\" in Cx.\"Respiratory exam result - Rales Choices\"\n or ContactData.\"Respiratory exam result\" in Cx.\"Respiratory exam result - Other abnormal result (specify) Choices\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 1
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Second pulse rate"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B8.DE37 Second pulse rate\n @activity: ANC.B8 Physical exam\n @description: The woman's second pulse rate in beats per minute (bpm)\n*/\ndefine \"Second pulse rate\":\n WC.MostRecent(\n [Observation: Cx.\"Second pulse rate\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.Quantity"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 2
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT06"
        },
        {
          "url" : "name",
          "valueString" : "Should Refer to a hospital"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n60 bpm > \"Second pulse rate\" > 100 bpm\n*/\ndefine \"Should Refer to a hospital\":\n ContactData.\"Second pulse rate\" < 60\n or ContactData.\"Second pulse rate\" > 100"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 3
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Body temperature"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B8.DE34 Body temperature\n @activity: ANC.B8 Physical exam\n @description: The woman's body temperature in degrees Celsius (°C) (first reading)\n*/\ndefine \"Body temperature\":\n WC.Earliest(\n [Observation: Cx.\"Body temperature\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.Quantity"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 4
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Second body temperature"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B8.DE35 Second body temperature\n @activity: ANC.B8 Physical exam\n @description: The woman's body temperature in degrees Celsius (°C) (second reading)\n*/\ndefine \"Second body temperature\":\n WC.MostRecent(\n [Observation: Cx.\"Second body temperature\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.Quantity"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 5
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT06"
        },
        {
          "url" : "name",
          "valueString" : "Should Conduct further investigation and, if necessary, refer urgently if treatment not available at your facility "
        },
        {
          "url" : "statement",
          "valueString" : "/*\n(\"Body temperature\" ≥ 38°C)\n AND (\"Second body temperature\" ≥ 38°C)\n*/\ndefine \"Should Conduct further investigation and, if necessary, refer urgently if treatment not available at your facility \":\n ContactData.\"Body temperature\" >= 38 'Cel'\n and ContactData.\"Second body temperature\" >= 38 'Cel'"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 6
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Abdominal exam result"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B8.DE71 Abdominal exam result\n @activity: ANC.B8 Physical exam\n @description: Whether or not the result of the abdominal exam is normal\n*/\ndefine \"Abdominal exam result\":\n WC.Only(\n [Observation: Cx.\"Abdominal exam result\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 7
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Pelvic exam result (visual)"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B8.DE79 Pelvic exam result (visual)\n @activity: ANC.B8 Physical exam\n @description: Whether or not the result of the pelvic exam is normal\n*/\ndefine \"Pelvic exam result (visual)\":\n WC.Only(\n [Observation: Cx.\"Pelvic exam result (visual)\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 8
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT06"
        },
        {
          "url" : "name",
          "valueString" : "Should Refer to a hospital 2"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n(((((((((((((((((\"Abdominal exam result\" = \"Mass/tumour\")\n OR (\"Abdominal exam result\" = \"Pain on superficial palpation\"))\n OR (\"Abdominal exam result\" = \"Pain on deep palpation\"))\n OR (\"Abdominal exam result\" = \"Painful decompression\"))\n OR (\"Abdominal exam result\" = \"Other abnormal abdominal exam result (specify)\"))\n OR (\"Pelvic exam result (visual)\" = \"Abnormal vaginal discharge\"))\n OR (\"Pelvic exam result (visual)\" = \"Evidence of amniotic fluid\"))\n OR (\"Pelvic exam result (visual)\" = \"Foul-smelling vaginal discharge\"))\n OR (\"Pelvic exam result (visual)\" = \"Clusters of erythematous papules\"))\n OR (\"Pelvic exam result (visual)\" = \"Vesicles\"))\n OR (\"Pelvic exam result (visual)\" = \"Genital ulcer\"))\n OR (\"Pelvic exam result (visual)\" = \"Genital pain\"))\n OR (\"Pelvic exam result (visual)\" = \"Tender bilateral inguinal and femoral lymphadenopathy\"))\n OR (\"Pelvic exam result (visual)\" = \"Cervical friability\"))\n OR (\"Pelvic exam result (visual)\" = \"Mucopurulent cervicitis\"))\n OR (\"Pelvic exam result (visual)\" = \"Tender unilateral lymphadenopathy\"))\n OR (\"Pelvic exam result (visual)\" = \"Curd-like vaginal discharge\"))\n OR (\"Pelvic exam result (visual)\" = \"Other abnormal pelvic exam (visual) result (specify)\")\n*/\ndefine \"Should Refer to a hospital 2\":\n ContactData.\"Abdominal exam result\" in Cx.\"Abdominal exam result - Mass/tumour Choices\"\n or ContactData.\"Abdominal exam result\" in Cx.\"Abdominal exam result - Pain on superficial palpation Choices\"\n or ContactData.\"Abdominal exam result\" in Cx.\"Abdominal exam result - Pain on deep palpation Choices\"\n or ContactData.\"Abdominal exam result\" in Cx.\"Abdominal exam result - Painful decompression Choices\"\n or ContactData.\"Abdominal exam result\" in Cx.\"Abdominal exam result - Other abnormal abdominal exam result (specify) Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Abnormal vaginal discharge Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Evidence of amniotic fluid Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Abnormal vaginal discharge Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Clusters of erythematous papules Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Vesicles Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Genital ulcer Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Genital pain Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Lymphadenopathy (pelvic - unilateral or bilateral) Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Cervical friability Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Mucopurulent cervicitis Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Lymphadenopathy (pelvic - unilateral or bilateral) Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Abnormal vaginal discharge Choices\"\n or ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Other abnormal pelvic exam (visual) result (specify) Choices\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 9
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Gestational age"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE17 Gestational age\n @activity: ANC.B6 Profile\n @description: Gestational age in weeks and/or days depending on the source of gestational age\n*/\ndefine \"Gestational age\":\n WC.MostRecent(\n [Observation: Cx.\"Gestational age\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.Quantity"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 10
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT06"
        },
        {
          "url" : "name",
          "valueString" : "Should Refer urgently to a hospital 4"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n(\"Pelvic exam result (visual)\" = \"Evidence of amniotic fluid\")\n AND (\"Gestational age\" < 37 weeks)\n*/\ndefine \"Should Refer urgently to a hospital 4\":\n ContactData.\"Pelvic exam result (visual)\" in Cx.\"Pelvic exam result (visual) - Evidence of amniotic fluid Choices\"\n and ContactData.\"Gestational age\" < 37 'weeks'"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 11
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Cardiac exam result"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B8.DE50 Cardiac exam result\n @activity: ANC.B8 Physical exam\n @description: The woman's cardiac condition\n*/\ndefine \"Cardiac exam result\":\n WC.Only(\n [Observation: Cx.\"Cardiac exam result\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 12
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT06"
        },
        {
          "url" : "name",
          "valueString" : "Should Refer urgently to a hospital 3"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n(((((((\"Cardiac exam result\" = \"Heart murmur\")\n OR (\"Cardiac exam result\" = \"Weak pulse\"))\n OR (\"Cardiac exam result\" = \"Tachycardia\"))\n OR (\"Cardiac exam result\" = \"Bradycardia\"))\n OR (\"Cardiac exam result\" = \"Arrhythmia\"))\n OR (\"Cardiac exam result\" = \"Cyanosis\"))\n OR (\"Cardiac exam result\" = \"Cold sweats\"))\n OR (\"Cardiac exam result\" = \"Other abnormal cardiac exam result (specify)\")\n*/\ndefine \"Should Refer urgently to a hospital 3\":\n ContactData.\"Cardiac exam result\" in Cx.\"Cardiac exam result - Heart murmur Choices\"\n or ContactData.\"Cardiac exam result\" in Cx.\"Cardiac exam result - Weak pulse Choices\"\n or ContactData.\"Cardiac exam result\" in Cx.\"Cardiac exam result - Tachycardia Choices\"\n or ContactData.\"Cardiac exam result\" in Cx.\"Cardiac exam result - Bradycardia Choices\"\n or ContactData.\"Cardiac exam result\" in Cx.\"Cardiac exam result - Arrhythmia Choices\"\n or ContactData.\"Cardiac exam result\" in Cx.\"Cardiac exam result - Peripheral cyanosis Choices\"\n or ContactData.\"Cardiac exam result\" in Cx.\"Cardiac exam result - Cold sweats Choices\"\n or ContactData.\"Cardiac exam result\" in Cx.\"Cardiac exam result - Other abnormal cardiac exam result (specify) Choices\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 13
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Oximetry"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B8.DE49 Oximetry\n @activity: ANC.B8 Physical exam\n @description: The measure of the oxygen saturation (%) in the woman's blood: this is usually measured using a pulse oximeter medical device\n*/\ndefine \"Oximetry\":\n WC.Only(\n [Observation: Cx.\"Respiratory exam result - Oximetry\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.Quantity"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 14
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT06"
        },
        {
          "url" : "name",
          "valueString" : "Should Refer urgently to a hospital 2"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n\"Oximetry\" < 92%\n*/\ndefine \"Should Refer urgently to a hospital 2\":\n ContactData.\"Oximetry\" < 92 '%'"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 15
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Breast exam result"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B8.DE61 Breast exam result\n @activity: ANC.B8 Physical exam\n @description: Whether or not the result of the breast exam is normal\n*/\ndefine \"Breast exam result\":\n WC.Only(\n [Observation: Cx.\"Breast exam result\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 16
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT06"
        },
        {
          "url" : "name",
          "valueString" : "Should Conduct further investigation and, if necessary, refer urgently to a hospital"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n((((((\"Breast exam result\" = \"Nodule\")\n OR (\"Breast exam result\" = \"Discharge\"))\n OR (\"Breast exam result\" = \"Flushing\"))\n OR (\"Breast exam result\" = \"Local pain\"))\n OR (\"Breast exam result\" = \"Bleeding\"))\n OR (\"Breast exam result\" = \"Increased temperature\"))\n OR (\"Breast exam result\" = \"Other breast exam result (specify)\")\n*/\ndefine \"Should Conduct further investigation and, if necessary, refer urgently to a hospital\":\n ContactData.\"Breast exam result\" in Cx.\"Breast exam result - Nodule Choices\"\n or ContactData.\"Breast exam result\" in Cx.\"Breast exam result - Discharge Choices\"\n or ContactData.\"Breast exam result\" in Cx.\"Breast exam result - Flushing Choices\"\n or ContactData.\"Breast exam result\" in Cx.\"Breast exam result - Local pain Choices\"\n or ContactData.\"Breast exam result\" in Cx.\"Breast exam result - Bleeding Choices\"\n or ContactData.\"Breast exam result\" in Cx.\"Breast exam result - Increased temperature Choices\"\n or ContactData.\"Breast exam result\" in Cx.\"Breast exam result - Other breast exam result (specify) Choices\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 17
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Second fetal heart rate"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B8.DE108 Second fetal heart rate\n @activity: ANC.B8 Physical exam\n @description: The second fetal heart rate reading in beats per minute (bpm)\n*/\ndefine \"Second fetal heart rate\":\n WC.MostRecent(\n [Observation: Cx.\"Second fetal heart rate\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.Quantity"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 18
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT06"
        },
        {
          "url" : "name",
          "valueString" : "Should Refer to a hospital 4"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n(100 bpm > \"Second fetal heart rate\" > 180 bpm)\n AND (\"Gestational age\" ≥ 20 weeks)\n*/\ndefine \"Should Refer to a hospital 4\":\n (ContactData.\"Second fetal heart rate\" < 100\n or ContactData.\"Second fetal heart rate\" > 180)\n and ContactData.\"Gestational age\" >= 20 'weeks'"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 19
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Fetal heartbeat present"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B8.DE106 Fetal heartbeat present\n @activity: ANC.B8 Physical exam\n @description: Whether or not the health worker observes a fetal heartbeat\n*/\ndefine \"Fetal heartbeat present\":\n WC.Only(\n [Observation: Cx.\"Fetal heartbeat present\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.boolean"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 20
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT06"
        },
        {
          "url" : "name",
          "valueString" : "Should Refer to a hospital 3"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n(\"Fetal heartbeat present\" = FALSE)\n AND (\"Gestational age\" ≥ 20 weeks)\n*/\ndefine \"Should Refer to a hospital 3\":\n ContactData.\"Fetal heartbeat present\" is false\n and ContactData.\"Gestational age\" >= 20 'weeks'"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 21
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToConcept"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 22
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToCode"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 23
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "WHOCommon"
        },
        {
          "url" : "name",
          "valueString" : "Only"
        },
        {
          "url" : "statement",
          "valueString" : "define function Only(observations List<Observation>):\n singleton from observations"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 24
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToString"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToString(value ObservationStatus): value.value"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 25
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToBoolean"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToBoolean(value boolean): value.value"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 26
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "WHOCommon"
        },
        {
          "url" : "name",
          "valueString" : "ModifierExtension"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n@description: Returns the single WHO core modifier extension (if present) on the given resource with the specified id.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\ndefine function ModifierExtension(domainResource DomainResource, id String):\n singleton from ModifierExtensions(domainResource, id)"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 27
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "WHOCommon"
        },
        {
          "url" : "name",
          "valueString" : "ModifierExtensions"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n@description: Returns any WHO core modifier extensions defined on the given resource with the specified id.\n@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info.\n*/\ndefine function ModifierExtensions(domainResource DomainResource, id String):\n domainResource.modifierExtension E\n\t where E.url = ('http://fhir.org/guides/who/core/StructureDefinition/' + id)\n\t\treturn E"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 28
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToString"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToString(value uri): value.value"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 29
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToString"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToString(value string): value.value"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 30
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToQuantity"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToQuantity(quantity FHIR.Quantity):\n case\n when quantity is null then null\n when quantity.value is null then null\n when quantity.comparator is not null then\n Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n else\n Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n end"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 31
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToCalendarUnit"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToCalendarUnit(unit System.String):\n case unit\n when 'ms' then 'millisecond'\n when 's' then 'second'\n when 'min' then 'minute'\n when 'h' then 'hour'\n when 'd' then 'day'\n when 'wk' then 'week'\n when 'mo' then 'month'\n when 'a' then 'year'\n else unit\n end"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 32
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "WHOCommon"
        },
        {
          "url" : "name",
          "valueString" : "MostRecent"
        },
        {
          "url" : "statement",
          "valueString" : "define function MostRecent(observations List<Observation>):\n Last(\n observations O\n sort by issued\n )"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 33
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "WHOCommon"
        },
        {
          "url" : "name",
          "valueString" : "Earliest"
        },
        {
          "url" : "statement",
          "valueString" : "define function Earliest(observations List<Observation>):\n First(\n observations O\n sort by issued\n )"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 34
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "id" : "effective-data-requirements",
      "url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
      "valueCanonical" : "#effective-data-requirements"
    },
    {
      "url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem",
      "valueReference" : {
        "reference" : "Device/cqf-tooling"
      }
    }
  ],
  "url" : "http://smart.who.int/anc/PlanDefinition/ANCDT06",
  "identifier" : [
    {
      "use" : "official",
      "value" : "ANC.DT.06"
    }
  ],
  "version" : "0.3.0",
  "name" : "ANCDT06",
  "title" : "ANC.DT.06 Physical symptoms and exam results requiring referral",
  "type" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/plan-definition-type",
        "code" : "eca-rule"
      }
    ]
  },
  "status" : "active",
  "experimental" : false,
  "date" : "2025-06-24T13:58:48-06:00",
  "publisher" : "World Health Organization (WHO)",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://www.who.int"
        }
      ]
    }
  ],
  "description" : "If the woman has any of the following physical exam results, refer to the hospital",
  "useContext" : [
    {
      "code" : {
        "system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
        "code" : "task",
        "display" : "Workflow Task"
      },
      "valueCodeableConcept" : {
        "coding" : [
          {
            "system" : "http://smart.who.int/anc/CodeSystem/activity-codes",
            "code" : "ANC.B8.",
            "display" : "Conduct physical exam"
          }
        ]
      }
    }
  ],
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "library" : [
    "http://smart.who.int/anc/Library/ANCDT06"
  ],
  "action" : [
    {
      "title" : "ANC.DT.06 Physical symptoms and exam results requiring referral",
      "trigger" : [
        {
          "type" : "named-event",
          "name" : "ANC.B8. Conduct physical exam"
        }
      ],
      "action" : [
        {
          "id" : "1",
          "title" : "Conduct further investigation and, if necessary, refer urgently if treatment not available at your facility ",
          "description" : "Conduct further investigation and, if necessary, refer urgently if treatment not available at your facility ",
          "textEquivalent" : "Woman has a fever – provide treatment and refer urgently to hospital!\nProcedure:\n– Insert an IV line\n– Give fluids slowly",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "Managing complications guide (IMPAC) (2017): Section S-113 (5)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "(\"Body temperature\" ≥ 38°C)\n AND (\"Second body temperature\" ≥ 38°C)",
                "language" : "text/cql-identifier",
                "expression" : "Should Conduct further investigation and, if necessary, refer urgently if treatment not available at your facility "
              }
            }
          ]
        },
        {
          "id" : "2",
          "title" : "Refer to a hospital",
          "description" : "Refer to a hospital",
          "textEquivalent" : "Abnormal pulse rate – refer for further investigation\nProcedure:\n– Check for fever, infection, respiratory distress, arrhythmia\n– Refer for further investigation",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "Managing complications guide (IMPAC) (2017): Section S-1 (5)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "60 bpm > \"Second pulse rate\" > 100 bpm",
                "language" : "text/cql-identifier",
                "expression" : "Should Refer to a hospital"
              }
            }
          ]
        },
        {
          "id" : "3",
          "title" : "Refer urgently to a hospital",
          "description" : "Refer urgently to a hospital",
          "textEquivalent" : "Woman has respiratory distress – refer urgently to the hospital!",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "Managing complications in pregnancy and childbirth guide (IMPAC) (2017): Section S-149 (5)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "((((((\"Respiratory exam result\" = \"Dyspnoea\")\n OR (\"Respiratory exam result\" = \"Cough\"))\n OR (\"Respiratory exam result\" = \"Rapid breathing\"))\n OR (\"Respiratory exam result\" = \"Slow breathing\"))\n OR (\"Respiratory exam result\" = \"Wheezing\"))\n OR (\"Respiratory exam result\" = \"Rales\"))\n OR (\"Respiratory exam result\" = \"Other abnormal respiratory exam result (specify)\")",
                "language" : "text/cql-identifier",
                "expression" : "Should Refer urgently to a hospital"
              }
            }
          ]
        },
        {
          "id" : "4",
          "title" : "Refer urgently to a hospital",
          "description" : "Refer urgently to a hospital 2",
          "textEquivalent" : "Woman has low oximetry (<92%) – she should be referred urgently to the hospital",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "Managing complications in pregnancy and childbirth guide (IMPAC) (2017): Section S-58 (5)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "\"Oximetry\" < 92%",
                "language" : "text/cql-identifier",
                "expression" : "Should Refer urgently to a hospital 2"
              }
            }
          ]
        },
        {
          "id" : "5",
          "title" : "Refer urgently to a hospital",
          "description" : "Refer urgently to a hospital 3",
          "textEquivalent" : "Woman's cardiac condition is abnormal and she should be referred urgently to the hospital",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "Managing complications in pregnancy and childbirth guide (IMPAC) (2017): Section S-150 (5)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "(((((((\"Cardiac exam result\" = \"Heart murmur\")\n OR (\"Cardiac exam result\" = \"Weak pulse\"))\n OR (\"Cardiac exam result\" = \"Tachycardia\"))\n OR (\"Cardiac exam result\" = \"Bradycardia\"))\n OR (\"Cardiac exam result\" = \"Arrhythmia\"))\n OR (\"Cardiac exam result\" = \"Cyanosis\"))\n OR (\"Cardiac exam result\" = \"Cold sweats\"))\n OR (\"Cardiac exam result\" = \"Other abnormal cardiac exam result (specify)\")",
                "language" : "text/cql-identifier",
                "expression" : "Should Refer urgently to a hospital 3"
              }
            }
          ]
        },
        {
          "id" : "6",
          "title" : "Conduct further investigation and, if necessary, refer urgently to a hospital",
          "description" : "Conduct further investigation and, if necessary, refer urgently to a hospital",
          "textEquivalent" : "Woman's breast exam was abnormal and she should be referred to hospital for further investigation",
          "documentation" : [
            {
              "type" : "citation"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "((((((\"Breast exam result\" = \"Nodule\")\n OR (\"Breast exam result\" = \"Discharge\"))\n OR (\"Breast exam result\" = \"Flushing\"))\n OR (\"Breast exam result\" = \"Local pain\"))\n OR (\"Breast exam result\" = \"Bleeding\"))\n OR (\"Breast exam result\" = \"Increased temperature\"))\n OR (\"Breast exam result\" = \"Other breast exam result (specify)\")",
                "language" : "text/cql-identifier",
                "expression" : "Should Conduct further investigation and, if necessary, refer urgently to a hospital"
              }
            }
          ]
        },
        {
          "id" : "7",
          "title" : "Refer to a hospital",
          "description" : "Refer to a hospital 2",
          "textEquivalent" : "Woman's abdominal exam was abnormal and she should be referred or further evaluated",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "WHO ANC recommendations (2016): B2.2 (2)\nManaging complications in pregnancy and childbirth guide (IMPAC) (2017): Section S-139 (5)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "(((((((((((((((((\"Abdominal exam result\" = \"Mass/tumour\")\n OR (\"Abdominal exam result\" = \"Pain on superficial palpation\"))\n OR (\"Abdominal exam result\" = \"Pain on deep palpation\"))\n OR (\"Abdominal exam result\" = \"Painful decompression\"))\n OR (\"Abdominal exam result\" = \"Other abnormal abdominal exam result (specify)\"))\n OR (\"Pelvic exam result (visual)\" = \"Abnormal vaginal discharge\"))\n OR (\"Pelvic exam result (visual)\" = \"Evidence of amniotic fluid\"))\n OR (\"Pelvic exam result (visual)\" = \"Foul-smelling vaginal discharge\"))\n OR (\"Pelvic exam result (visual)\" = \"Clusters of erythematous papules\"))\n OR (\"Pelvic exam result (visual)\" = \"Vesicles\"))\n OR (\"Pelvic exam result (visual)\" = \"Genital ulcer\"))\n OR (\"Pelvic exam result (visual)\" = \"Genital pain\"))\n OR (\"Pelvic exam result (visual)\" = \"Tender bilateral inguinal and femoral lymphadenopathy\"))\n OR (\"Pelvic exam result (visual)\" = \"Cervical friability\"))\n OR (\"Pelvic exam result (visual)\" = \"Mucopurulent cervicitis\"))\n OR (\"Pelvic exam result (visual)\" = \"Tender unilateral lymphadenopathy\"))\n OR (\"Pelvic exam result (visual)\" = \"Curd-like vaginal discharge\"))\n OR (\"Pelvic exam result (visual)\" = \"Other abnormal pelvic exam (visual) result (specify)\")",
                "language" : "text/cql-identifier",
                "expression" : "Should Refer to a hospital 2"
              }
            }
          ]
        },
        {
          "id" : "8",
          "title" : "Refer urgently to a hospital",
          "description" : "Refer urgently to a hospital 4",
          "textEquivalent" : "Woman should be referred urgently if there is evidence of amniotic fluid, which could indicate the start of labour",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "Managing complications in pregnancy and childbirth guide (IMPAC) (2017): Sections S-51, C-91 (5)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "(\"Pelvic exam result (visual)\" = \"Evidence of amniotic fluid\")\n AND (\"Gestational age\" < 37 weeks)",
                "language" : "text/cql-identifier",
                "expression" : "Should Refer urgently to a hospital 4"
              }
            }
          ]
        },
        {
          "id" : "9",
          "title" : "Refer to a hospital",
          "description" : "Refer to a hospital 3",
          "textEquivalent" : "If no fetal heartbeat is observed, inform the woman that there might be a problem and that she needs to be referred to the hospital for further examination and next steps.\n\nProcedure:\n– Inform the woman that you cannot find the heartbeat and need to refer her to check if there's a problem\n– Refer to hospital",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "Pregnancy, childbirth, postpartum and newborn care guide (IMPAC) (2015): C7 (1)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "(\"Fetal heartbeat present\" = FALSE)\n AND (\"Gestational age\" ≥ 20 weeks)",
                "language" : "text/cql-identifier",
                "expression" : "Should Refer to a hospital 3"
              }
            }
          ]
        },
        {
          "id" : "10",
          "title" : "Refer to a hospital",
          "description" : "Refer to a hospital 4",
          "textEquivalent" : "Fetal heart rate is abnormal after two readings: the woman should be referred to hospital",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "Pregnancy, childbirth, postpartum and newborn care guide (IMPAC) (2015): C7 (1)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "(100 bpm > \"Second fetal heart rate\" > 180 bpm)\n AND (\"Gestational age\" ≥ 20 weeks)",
                "language" : "text/cql-identifier",
                "expression" : "Should Refer to a hospital 4"
              }
            }
          ]
        }
      ]
    }
  ]
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.